import Vue from 'vue';
import App from './App.vue';
import router from '@/router';
import ElementUI from 'element-ui';
import Vant from 'vant';
import moment from 'moment';
import axios from 'axios';
import { Toast } from 'vant';
import { Dialog } from 'vant';
import 'element-ui/lib/theme-chalk/index.css';
import '@/style/public.scss';
import 'animate.css';
import 'vant/lib/index.css';
Vue.prototype.$moment = moment;
Vue.prototype.$axios = axios;
Vue.prototype.$toast = Toast;
Vue.prototype.$dialog = Dialog;
Vue.config.productionTip = false;

moment.locale('zh-cn');
Vue.use(moment); // 处理时间的过滤器
Vue.use(Vant);
Vue.use(ElementUI);
new Vue({
  router,
  render: (h) => h(App)
}).$mount('#app');
